﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyStore
{
    public abstract class CartItem
    {
        public Product Product { get; set; }

        public int Quantity { get; set; }

        public decimal SalePrice { get; set; }

        public bool IsCanAddToCart
        {
            get
            {
                if (Quantity < 0)
                    return false;

                if (SalePrice < 0)
                    return false;

                return true;
            }
        }
    }
}
